import request from '../utils/request'

export function fecthList(params){
   return request({
        url: '/commodityInfo/getCommodityInfoList',
        method: 'get',
        params: params
})
}
export function getById(id){
    return request({
         url: '/commodityInfo/getCommodityInfoById',
         method: 'get',
         params: {id}
    })
 }
export function add(data){
    return request({
         url: '/commodityInfo/addCommodityInfo',
         method: 'post',
        data
    })
 }
 export function update(data){
    return request({
         url: '/commodityInfo/updateCommodityInfo',
         method: 'post',
         data
    })
 }
 export function deleteOne(id){
    return request({
         url: '/commodityInfo/deleteCommodityInfo',
         method: 'post',
         data: [id]
    })
 }
 export function deleteByIds(data){
    return request({
         url: '/commodityInfo/deleteCommodityInfo',
         method: 'post',
         data
    })
 }
